home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ RAM Settings.xpl < prev    next >
Text File  |  1999-06-13  |  2KB  |  62 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="System\Memory"
  5. "NAME"="General Memory Settings"
  6. "VERSION"="1.31"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Unload DLLs directly"
  9. "TEXT 2"="Reserve more memory for DOS programs"
  10. "DESCRIPTION 1"="Normally, Windows waits a short time before DLLs are removed from memory. If you activate this option, Windows removes them directly without waiting."
  11. "DESCRIPTION 2"="Note that some programs (like Access) will crash if you activate it."
  12. "DESCRIPTION 3"="Enable "Reserve more memory for DOS programs" if you are still using DOS-based programs and you think they can need some more memory."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18. Sub Plugin_Initialize 
  19.  'AllwayUnloadDLLs! former a path but I think this is the correct version
  20.  'Let's say: I HOPE SO!
  21.  s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL")
  22.  if IsEmpty(s)=false then SetUIElement 1,true
  23.  
  24.  i=IniReadValue("system.ini","386Enh","LocalLoadHigh")
  25.  if i=1 then SetUIElement 2,true
  26. End Sub
  27.  
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32.  
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  b=GetUIElement(1)
  36.  if b=true then
  37.   Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL","",1)
  38.  else
  39.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL")
  40.   if IsEmpty(s)=false then 
  41.    Call RegDeleteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL")
  42.   end if
  43.  end if
  44.  
  45.  
  46.  b=GetUIElement(2)
  47.  if b=true then
  48.   Call IniWriteValue("system.ini","386Enh","LocalLoadHigh",1)
  49.  else
  50.   Call IniWriteValue("system.ini","386Enh","LocalLoadHigh",0)
  51.  end if
  52.  
  53.  Restart
  54. End Sub
  55.  
  56.  
  57. Sub Plugin_Terminate 
  58. End Sub
  59.  
  60.  
  61.  
  62.